package com.cd2cd.code_template.configuration.authority;

import com.cd2cd.code_template.configuration.constants.AuthTypeEnum;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(AuthControlRegistrar.class)
@Component
public @interface AuthControl {

    String name();

    AuthTypeEnum type();

    String routePath();

}
